#pragma once
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include"assert.h"
#define MAX 1000
#define MAX_NAME 20
#define MAX_SEX 5
#define MAX_TELE 12
#define MAX_ADDR 30
enum OPTION
{
	EXIT,
	ADD,
	DEL,
	SEARCH,
	MODIFY,
	SHOW,
	EMPTY,
	SORT,
};
typedef struct Peoinfo
{
	char name[MAX_NAME];
	int age;
	char sex[MAX_SEX];
	char tele[MAX_TELE];
	char addr[MAX_ADDR];

}Peoinfo;
typedef struct Contact
{
	Peoinfo data[MAX];
	int sz;
}Contact;
void InitContact(Contact* pc);
void AddContact(Contact* pc);
void DelContact(Contact* pc);
int FindByname(Contact* pc, char name[]);
void ShowContact(const Contact* pc);
void SearchContact(const Contact* pc);
void ModifyContact(Contact* pc);
void EmptyContact(Contact* pc);
void SortContact(const Contact* pc);